//
//  SheetView.h
//  DriveStudy
//
//  Created by chen on 2017/4/20.
//  Copyright © 2017年 chen. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SheetViewDelegate

-(void)SheetViewClick:(int)index;

@end

@interface SheetView : UIView
-(instancetype)initWithFrame:(CGRect)frame withSuperView:(UIView *)view andQuestion:(int)count;
//向上滑的过程是有两个view，一个是背景View-backview随着高度改变透明度，另一个SheetView存放选择项,superView是父视图，也就是我们这个抽屉视图依附于的那个视图上。

@property(nonatomic,weak)id<SheetViewDelegate> delegate;
@property(nonatomic,strong)UIView *backView;
@property(nonatomic,strong)UIView *superView;
@end
